package com.thkj.framework.exception;

public class AppException extends RuntimeException implements java.io.Serializable {
    private static final long serialVersionUID = 1L;
    private Throwable ex = null;
    private String errorCode = null;

    public AppException(String message) {
        super(message);
    }
    
    public AppException(String errorCode, String message){
    	super(message);
    	this.errorCode = errorCode;
    }

    public AppException(Throwable ex) {
        super(ex);
        this.ex = ex;
    }

    public AppException(String message, Throwable ex) {
        super(message);
        this.ex = ex;
    }

    public Throwable getCause() {
        return ex;
    }
    
    public String getErrorCode(){
    	return this.errorCode;
    }
    
}
